package com.zzit.vjv.entity;

import java.io.Serializable;

/**
 * 收货地址表实体类
 */
public class Address implements Serializable {

    private int id;//主键ID
    private String contact;//联系人姓名
    private String addressDesc;//收货地址明细
    private String postCode;//邮编
    private String tel;//联系人电话
    private int createdBy;//创建者
    private String creationDate;//创建时间
    private int modifyBy;//修改者
    private String modifyDate;//修改时间
    private int userId;//用户ID


    /**
     * 无参构造
     */
    public Address(){

    }

    /**
     * 有参构造
     * @param id 主键ID
     * @param contact 联系人姓名
     * @param addressDesc 收货地址明细
     * @param postCode 邮编
     * @param tel 联系人电话
     * @param createdBy 创建者
     * @param creationDate 创建时间
     * @param modifyBy 修改者
     * @param modifyDate 修改时间
     * @param userId 用户ID
     */
    public Address(int id, String contact, String addressDesc, String postCode, String tel, int createdBy, String creationDate, int modifyBy, String modifyDate, int userId) {
        this.id = id;
        this.contact = contact;
        this.addressDesc = addressDesc;
        this.postCode = postCode;
        this.tel = tel;
        this.createdBy = createdBy;
        this.creationDate = creationDate;
        this.modifyBy = modifyBy;
        this.modifyDate = modifyDate;
        this.userId = userId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getAddressDesc() {
        return addressDesc;
    }

    public void setAddressDesc(String addressDesc) {
        this.addressDesc = addressDesc;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(int createdBy) {
        this.createdBy = createdBy;
    }

    public String getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(String creationDate) {
        this.creationDate = creationDate;
    }

    public int getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(int modifyBy) {
        this.modifyBy = modifyBy;
    }

    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(String modifyDate) {
        this.modifyDate = modifyDate;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", contact='" + contact + '\'' +
                ", addressDesc='" + addressDesc + '\'' +
                ", postCode='" + postCode + '\'' +
                ", tel='" + tel + '\'' +
                ", createdBy=" + createdBy +
                ", creationDate='" + creationDate + '\'' +
                ", modifyBy=" + modifyBy +
                ", modifyDate='" + modifyDate + '\'' +
                ", userId=" + userId +
                '}';
    }
}
